<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link href="./css/api.css" rel="stylesheet"/>
  <link href="./css/element.css" rel="stylesheet"/>
  <link href="./css/base.css" rel="stylesheet"/>
  <title>登录</title>
</head>
<body>
  <div id="vm" v-cloak>
    <div class="x-interl-table">
      <el-table :data="tableData" style="" size="small">
        <el-table-column prop="username" label="姓名" width="60"></el-table-column>
        <el-table-column prop="date" label="投递时间" width="90"></el-table-column>
        <el-table-column prop="job" label="面试岗位" width="70"></el-table-column>
        <!-- <el-table-column prop="" label="个人简历" width="55" style="text-align:center"><span class="x-see-person">查看</span></el-table-column> -->
        <el-table-column prop="id" label="个人简历" width="55" style="text-align:center">
          <template slot-scope="scope">
            <span class="x-see-person" @click.stop="openmanawin('seeassessment','seeassessment.html',scope.row.id)">查看</span>
          </template>
        </el-table-column>
        <el-table-column prop="" label="操作" width="70">
          <template slot-scope="scope">
            <div class="x-change-per" @click.stop="openmanawin('assessment','assessment.html',scope,row.mid)">审核</div>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
  <script type="text/javascript" src="./script/vue.js"></script>
  <script type="text/javascript" src="./script/element.js"></script>
  <script type="text/javascript" src="./script/api.js"></script>
  <script type="text/javascript" src="./js/base.js"></script>
  <script>
    apiready = function () {
      //
    var vm = new Vue({
      el:'#vm',
      data(){
        return{
          tableData:[]
        }
      },
      created:function() {
        var that=this;

      },
      mounted:function(){
        var that=this;
        that.gettabledata()

      },
      methods: {
        gettabledata:function(){
          var that=this;
          api.ajax({
            url:manaurltwo+'list',
            methods:'get',
            data:{
              values:{
                sec:$api.getStorage('usertoken'),
                type:'5'
              }
            }
          },function(ret,err){
            if(ret){
              api.hideProgress();
              console.log(JSON.stringify(ret));
              if(ret.status == 1){
                for(var i=0;i<ret.data.list.length;i++){
                  if(ret.data.list[i].gender=='2'){
                    ret.data.list[i].gender='女'
                  }else if(ret.data.list[i].gender=='1'){
                    ret.data.list[i].gender='男'
                  }
                }
                that.tableData = ret.data.list;

              }else{
                api.toast({
                    msg: ret.msg,
                    duration: 3000,
                    location: 'bottom'
                });
              }
            }else{
              api.hideProgress();
              console.log(JSON.stringify(err));
              api.toast({
                  msg: err.msg,
                  duration: 3000,
                  location: 'bottom'
              });
            }
          })
        },
      }
    })
    }
  </script>
</body>
</html>
